package com.shuoyue.ycgk.ui.recruitment.newsinfo;


import android.text.Html;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseViewHolder;
import com.shuoyue.ycgk.R;
import com.shuoyue.ycgk.base.baseadapter.AppBaseQuickAdapter;
import com.shuoyue.ycgk.entity.JobInfo;

import java.util.List;

public class JobInRecurimentAdapter extends AppBaseQuickAdapter<JobInfo> {

    public JobInRecurimentAdapter(@Nullable List<JobInfo> data) {
        super(R.layout.item_job_in_recuriment, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, JobInfo item) {
        helper.addOnClickListener(R.id.lay_all);
        helper.setText(R.id.jobName, item.getPostName());
        helper.setText(R.id.subtitle1, Html.fromHtml("招聘单位:<font color='#333333'>" + item.getPostUnit()));
        helper.setText(R.id.subtitle2, Html.fromHtml("招考地区:<font color='#333333'>" + item.getAreaName()));
        helper.setText(R.id.subtitle3, Html.fromHtml("招录人数:<font color='#333333'>" + item.getPersonNum() + "人"));
        helper.setText(R.id.subtitle4, Html.fromHtml("专业:<font color='#333333'>" + item.getMajor()));
        helper.setText(R.id.subtitle5, Html.fromHtml("学历:<font color='#333333'>" + item.getEducation()));
    }


}
